import { createRouter, createWebHistory } from 'vue-router'

import Test from '@/examples/Test.vue'
import Home from '@/components/views/pages/index/right/Home.vue'

const routes = [
  { path: '/test', name: 'test', component: Test },

  { path: '/', name: 'home', component: Home },
  { path: '/index', name: 'index', component: () => import('@/components/views/pages/Index.vue') },
  { path: '/login', name: 'login', component: () => import('@/components/views/pages/Login.vue') },
]

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes,
})

export default router